/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package javafiles;

import java.io.File;
import java.io.IOException;

/**
 *
 * @author human
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws IOException {
        
        File settDir = new File("settings/stream");
        
        if (!settDir.exists()) {
            settDir.mkdirs();
        }
        
//        File file = new File("settings/file.txt");
        File file = new File(settDir, "file.txt");
        
        if (file.exists()) {
            System.out.println("File exists.");
        } else {
        }
        
        boolean flag = file.createNewFile();
        System.out.println("File created? " + flag);
    }
}
